<!-- 题库管理-题目管理 -->
<div class="manageTitle">
	题目管理 - 编辑试题
</div>

<div class="content" ng-controller="newExam">
	<div class="addBtn">
		<span class="title">请选择试题题型</span>
		<div class="input-group m-b">
		    <div class="input-group-btn dropdown" dropdown="">
		        <button type="button" class="btn btn-default" dropdown-toggle="" aria-haspopup="true"
		        aria-expanded="false">
		            {{nowTopic}}
		            <span class="caret">
		            </span>
		        </button>
		        <ul class="dropdown-menu">
		            <li ng-repeat="item in topicType" ng-click="selectTopicType(item);">
		                <a href="javascript:;">
		                    {{item}}
		                </a>
		            </li>
		        </ul>
		    </div>
		</div>


		<span class="title">请选择试题所属分类</span>
		<div class="input-group m-b">
		    <div class="input-group-btn dropdown" dropdown="">
		        <button type="button" class="btn btn-default" dropdown-toggle="" aria-haspopup="true"
		        aria-expanded="false">
		            {{nowTheme.name}}
		            <span class="caret">
		            </span>
		        </button>
		        <ul class="dropdown-menu">
		            <li ng-repeat="item in selectList.themeArr" ng-click="selectTheme(item);">
		                <a href="javascript:;">
		                    {{item.name}}
		                </a>
		            </li>
		        </ul>
		    </div>
		</div>

		<span class="title">请选择试题所属章节</span>
		<div class="input-group m-b">
		    <div class="input-group-btn dropdown" dropdown="">
		        <button type="button" class="btn btn-default" dropdown-toggle="" aria-haspopup="true"
		        aria-expanded="false">
		            {{nowChapter.name}}
		            <span class="caret">
		            </span>
		        </button>
		        <ul class="dropdown-menu">
		            <li ng-repeat="item in selectList.chapterArr" ng-click="selectChapter(item);">
		                <a href="javascript:;">
		                    {{item.name}}
		                </a>
		            </li>
		        </ul>
		    </div>
		</div>
	</div>


	<div class="panel-body">
	    <form class="form-horizontal">
	    	<div class="form-group">
	    	    <label class="col-sm-2 control-label">
	    	        题干
	    	    </label>
	    	    <div class="col-sm-10">
	    	     <ng-simditor content="title"></ng-simditor>
	    	     </div>
	    	</div>

	    	<!-- 非判断题选项 -->
	    	<div ng-if="notJudgment" class="optionDiv">
		    	<div class="form-group" ng-repeat="item in opt track by $index">
	        	    <label class="col-sm-2 control-label">
	        	        <div class="radio floatRight">
	        	            <label class="i-checks">
	        	                <input type="{{inputType}}" name="answer" class="checkBox" ng-checked="item.is_true==1" ng-click="selectAnswer(item,$event);">
	        	                <i></i>
	        	            </label>
	        	        </div>
	    				<label class="labelStyle">选项{{item.option}}</label>
	        	    </label>
		    	    <div class="col-sm-10 widthSame">
		    	    	<ng-simditor content="item.option_val"></ng-simditor>
		    	    	<!-- <a href="javascript:;"><img src="../img/deleteTopic.png" ng-click="deleteOption($event,$index);"></a> -->
		    	    </div>
		    	</div>
	    	</div>
			
			<!-- 判断题选项 -->
	    	<div ng-if="judgment" class="optionDiv">
		    	<div class="form-group" ng-repeat="item in opt track by $index">
		    	    <label class="col-sm-2 control-label">
		    	        <div class="radio floatRight">
		    	            <label class="i-checks">
		    	                <input type="radio" name="answer"  class="checkBox" ng-click="selectAnswer(item,$event);" ng-checked="item.is_true==1">
		    	                <i></i>
		    	            </label>
		    	        </div>
						<label class="labelStyle">选项{{item.option}}</label>
		    	    </label>
		    	    <div class="col-sm-10 widthSame">
						<input type="text" class="option" ng-model="item.option_val">
		    	    </div>
		    	</div>
	    	</div>

	    	<div class="form-group">
	    	    <label class="col-sm-2 control-label">
	    	        
	    	    </label>
	    	    <div class="col-sm-10">
	    	    	<a href="javascript:;" class="baseBtn addOption" ng-click="addOption();" ng-if="notJudgment">新增选项</a>
	    	    </div>
	    	</div>

	    	<div class="form-group rightAnswer">
	    	    <label class="col-sm-2 control-label">
	    	        
	    	    </label>
	    	    <div class="col-sm-10">
	    	    	<p>正确答案<span class="right">{{right}}</span></p>
	    	    </div>
	    	</div>

	    	<div class="form-group">
	    	    <label class="col-sm-2 control-label">
	    	        答案解析
	    	    </label>
	    	    <div class="col-sm-10">
	    	     <ng-simditor content="analysis"></ng-simditor>
	    	     </div>
	    	</div>

	    	<div class="form-group">
	    	    <label class="col-sm-2 control-label">
	    	        
	    	    </label>
	    	    <div class="col-sm-10">
	    	    	<a href="javascript:;" class="baseBtn addOption" ng-click="save();">保存</a>
	    	    	<a href="javascript:;" class="baseCancelBtn" ng-click="cancel();">取消</a>
	    	    </div>
	    	</div>
	    </form>
	</div>
</div>